<extend name="Public/Wechat"/>

<block name="body">
    <div class="row common_block_border">
        <div class="common_block_title">{:L('_SEARCH_RESULT_KEYWORD_')} <span style="color: red">{$_REQUEST.keywords}</span></div>
        <div class="col-xs-12">
            <section id="contents">
                <if condition="!$list">
                    <div class="row">
                        <div class="col-xs-12">
                            <p class="text-muted" style="text-align: center; font-size: 3em;">
                                <br/><br/>
                                {:L('_POST_NO_NOW_')}
                                <br/><br/><br/>
                            </p>
                        </div>
                    </div>
                </if>
                <volist name="list" id="vo">
                    <php>
                        $user = query_user(array('avatar128','avatar64','nickname','uid','space_url'),
                        $vo['uid']);
                    </php>
                    <div class="clearfix">
                        <div class="col-xs-2 text-center">
                            <p>
                                <a href="{$user.space_url}">
                                    <img src="{$user.avatar64}" ucard="{$user.uid}" class="avatar-img"/>
                                </a>
                            </p>
                        </div>
                        <div class="col-xs-10">
                            <p class="text-ellipsis">
                                <a class="Wechat_Wechat_name" href="{:U('Wechat/Index/Wechat',array('id'=>$vo['Wechat_id']))}">[{$vo.Wechat.title|text}]</a>
                                <a class="Wechat-list-title-link" title="{$vo.title|text}"
                                   href="{:U('Index/detail',array('id'=>$vo['id']))}">{$vo.colored_title}
                                </a>
                                <eq name="document.is_top" value="2"><span class="label label-badge label-danger">{:L('_ALL_SITE_')}</span>
                                    <else/>
                                    <eq name="document.is_top" value="1"><span class="label label-badge label-info">{:L('_SECTION_')}</span></eq>
                                </eq>
                            </p>

                            <p class="pull-right text-muted">
                                <span>{:L('_READ_')}（{$vo.view_count}）</span>
                                <span style="width: 1em; display: inline-block;">&nbsp;</span>
                                <span>{:L('_REPLY_')}（{$vo.reply_count}）</span>
                            </p>

                            <p class="text-muted author">
                                <a href="{$user.space_url}" ucard="{$user.uid}">{$user.nickname|op_t}</a>
                                {:L('_RELEASE_')}：{$vo.create_time|friendlyDate} |
                                {:L('_REPLY_')}：{$vo.last_reply_time|friendlyDate}
                            </p>
                        </div>
                    </div>

                </volist>
                <div class="pull-right">
                    {:getPagination($totalCount)}
                </div>
            </section>
        </div>
    </div>
</block>
